package com.zy.storage.doc

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

//数据表名称
@Entity(tableName = "doc")
data class DocInfo(

    @PrimaryKey(autoGenerate = true) val uid: Int = 0,

    @ColumnInfo(name = "fileId") val fileId: Long, //文件id

    @ColumnInfo(name = "parentId") val parentId: Long = 0, //父文件id  根目录id为0

    @ColumnInfo(name = "title") var title: String?, //描述

    @ColumnInfo(name = "des") var des: String?,//描述


    @ColumnInfo(name = "createTime") val createTime: Long = System.currentTimeMillis(), //创建时间

    @ColumnInfo(name = "updateTime") val updateTime: Long = createTime, //更新时间

    @ColumnInfo(name = "fileType") val fileType: Int = 0,//文档类型(文件夹和文件)

    @ColumnInfo(name = "layout") var layout: String = "" //布局 0 文件夹 1 问价
)